﻿using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace PostIt
{
    public class ItemViewModel : INotifyPropertyChanged 
    {


        private int _TaskId;
        /// <summary>
        /// Sample ViewModel property; this property is used in the view to display its value using a Binding.
        /// </summary>
        /// <returns></returns>
        public int TaskId
        {
            get
            {
                return _TaskId;
            }
            set
            {
                if (value != _TaskId)
                {
                    _TaskId = value;
                    NotifyPropertyChanged("TaskId");
                }
            }
        }

        
        private string _Title;
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string Title 
        {
            get 
            {
                return _Title;
            }
            set 
            {
                _Title = value;
                NotifyPropertyChanged("Title");
            }
        }


        private string _tileText;
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string tileText
        {
            get
            {
                return _tileText;
            }
            set
            {
                _tileText = value;
                NotifyPropertyChanged("tileText");
            }
        }


        private string _Detail;
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string Detail
        {
            get
            {
                return _Detail;
            }
            set
            {
                _Detail = value;
                NotifyPropertyChanged("Detail");
            }
        }



        private DateTime _CreationDate;
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public DateTime CreationDate
        {
            get
            {
                return _CreationDate;
            }
            set
            {
                _CreationDate = value;
                NotifyPropertyChanged("CreationDate");
            }
        }


        private string _DueDate;
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string DueDate
        {
            get
            {
                return _DueDate;
            }
            set
            {
                _DueDate = value;
                NotifyPropertyChanged("DueDate");
            }
        }

        private string _BackColor;
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string BackColor
        {
            get
            {
                return _BackColor;
            }
            set
            {
                _BackColor = value;
                NotifyPropertyChanged("BackColor");
            }
        }

        private string _isDone;
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string isDone
        {
            get
            {
                return _isDone;
            }
            set
            {
                _isDone = value;
                NotifyPropertyChanged("isDone");
            }
        }
        private string _isPin;
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string isPin
        {
            get
            {
                return _isPin;
            }
            set
            {
                _isPin = value;
                NotifyPropertyChanged("isPin");
            }
        }

        private double _rectOpa;
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public double rectOpa
        {
            get
            {
                return _rectOpa;
            }
            set
            {
                _rectOpa = value;
                NotifyPropertyChanged("rectOpa");
            }
        }
        private string _isDoneImgAdr;
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string isDoneImgAdr
        {
            get
            {
                return _isDoneImgAdr;
            }
            set
            {
                _isDoneImgAdr = value;
                NotifyPropertyChanged("isDoneImgAdr");
            }
        }
        private string _isPinImgAdr;
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string isPinImgAdr
        {
            get
            {
                return _isPinImgAdr;
            }
            set
            {
                _isPinImgAdr = value;
                NotifyPropertyChanged("isPinImgAdr");
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged(String propertyName) 
        {
            if (null != PropertyChanged) 
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}